package stylistcrm.core.services.order.enums;

/**
 * Created by cheny on 2016/9/24.
 */
public enum EnumConsigneeStatus {

    DEFAULT("0","默认"),
    INVALID("1","作废");

    private String code;

    private String desc;

    private EnumConsigneeStatus(String code,String desc){
        this.code=code;
        this.desc=desc;
    }

    public String getCode(){
        return code;
    }

    public String getDesc(){
        return desc;
    }

    public static EnumConsigneeStatus getEnum(String code) {

        for (EnumConsigneeStatus enumValue : EnumConsigneeStatus.values()) {
            if (enumValue.getCode().equals(code))
                return enumValue;
        }

        return null;
    }
}
